{% extends 'base.html' %}
{% from 'bootstrap/pagination.html' import render_pagination %}

{% block title %}{{ category.name }}{% endblock %}

{% block content %}
    <div class="page-header">
        <h1>分类: {{ category.name }}</h1>
        <p class="text-muted">{{ category.posts|length }} 篇文章</p>
    </div>
    <div class="row">
        <div class="col-sm-8">
            {% include "main/_posts.html" %}
            <div class="page-footer">{{ render_pagination(pagination) }}</div>
        </div>
        <div class="col-sm-4 sidebar">
            {% include "main/_sidebar.html" %}
        </div>
    </div>
{% endblock %}
